<?php
/**
 * Create by 11li
 * Date 2020/2/10
 * Time 10:54
 *
 */

namespace app\api\controller\v1;


use app\common\controller\Api;
use app\common\service\MessageService;

class Message extends Api
{
	
	public function index() {
		$page = $this->request->get('page', 1, 'intval');
		$service = new MessageService();
		$res  = $service->getListByUserId($page, $this->auth->id);
		$this->success('查询成功', $res);
	}
}